package com.lyj.mall.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lyj.mall.pojo.RolePermissions;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Set;

/**
 * @author  lyj
 * @date  2019/12/17 23:47
 */
@Mapper
public interface RolePermissionsMapper extends BaseMapper<RolePermissions> {
    int deleteByPrimaryKey(Integer id);

    @Override
    int insert(RolePermissions record);

    int insertSelective(RolePermissions record);

    RolePermissions selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(RolePermissions record);

    int updateByPrimaryKey(RolePermissions record);

    Set<RolePermissions> findPermissionsByRole(String role);
}